package com.example.demo.entity;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @author ChenYongHao
 * @date 2023/3/2 14:09
 * @desc
 */
@Component
@Data
public class Dog {
    @Value("旺财")
    private String name;
    @Value("3")
    private Integer age;
}
